CC=g++
FLAG=-O2 -w -lgdi32 -std=c++11
#-O2 -L/usr/X11R6/lib -lm -lpthread -lX11 -std=c++11
# -O2 -w -lgdi32 -std=c++11

all:
	make main.exe
	cp main.exe ../bin/

main.exe:main.o TSP_solver.o
	${CC} main.o TSP_solver.o ${FLAG} -o main.exe

main.o:main.cpp
	${CC} -c ${FLAG} main.cpp

TSP_solver.o:TSP_solver.cpp
	${CC} -c ${FLAG} TSP_solver.cpp

make run:
	T=5000000 L=1.5 C=6 R=10 main.exe ../data/data1.txt

clean:
	rm *.o